package com.zoro.jianyue.libs.progress;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ProgressBar;

import com.zoro.jianyue.R;

/**
 * Created by CM-ZR on 2016/1/28.
 */
public class CircularProgressBar extends ProgressBar {
    public CircularProgressBar(Context context) {
        this(context, null);
    }

    public CircularProgressBar(Context context, AttributeSet attrs) {
        this(context, attrs, R.attr.cpbStyle);
    }

    public CircularProgressBar(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);

        if (isInEditMode()){
            setIndeterminateDrawable(new CircularProgressDrawable());
        }
    }
}
